package com.jic.market.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.market.request.rest.realtimeprice.RealTimePriceRequest;
import com.jic.market.response.rest.realtimeprice.RealTimePriceListResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * description: RealTimePriceRestApi
 * date: 2020/4/10 10:23
 * author: wangys
 * version: 1.0
 */

@FeignClient(name = "jic-market",path = "/rest/realTimePrice")
public interface RealTimePriceRestApi {

    @PostMapping("/getPriceStockList")
    RestResult<RealTimePriceListResponse> getPriceStockList(@RequestBody @Valid RealTimePriceRequest request);
}
